<?php

class Dataset{

public $label=NULL;
public $comment=NULL;
public $dsdate=NULL;
public $publisher=NULL;
public $subject=NULL;
public $dsuri=NULL;

/*** Declare instance ***/
private static $instance = NULL;

 // getInstance method 
  public static function getInstance() { 

    if(!self::$instance) { 
      self::$instance = new self(); 
    } 

    return self::$instance; 

  }
  
public static function wrapDataset($uri,$label,$comment ,$dateds, $subject, $publisher){
  $ds=new Dataset();
  $ds->dsuri=$uri;
  $ds->label=$label;
  $ds->comment=$comment;
  $ds->dsdate=$dateds;
  $ds->subject=$subject;
  $ds->publisher=$publisher;

  return $ds;
}


} /*** end of class ***/

?>
